package hhm.android.library.datePicker.adapter.datetime;

import androidx.annotation.NonNull;

import hhm.android.library.datePicker.bean.DateParams;
import hhm.android.library.datePicker.bean.DatePick;

public class HourAdapter extends DatePickAdapter {

    public HourAdapter(@NonNull DateParams dateParams, @NonNull DatePick datePick, int selectColor) {
        super(dateParams, datePick, selectColor);
    }

    @Override
    public int getCurrentIndex() {
        return mData.indexOf(mDatePick.hour);
    }

    @Override
    public void refreshValues() {
        setData(getTimeArray(24));
    }
}
